package cn.coisini.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.util.List;

/**
 * @author xiangshaw
 * Description: 路由配置信息
 */
@Tag(name = "路由配置信息")
@Data
public class RouterVo {

    //@Schema(description = "路由名字")
    //private String name;

    @Schema(description = "路由地址")
    private String path;

    @Schema(description = "是否隐藏路由，当设置 true 的时候该路由不会再侧边栏出现")
    private boolean hidden;

    @Schema(description = "组件地址")
    private String component;

    @Schema(description = "当你一个路由下面的 children 声明的路由大于1个时，自动会变成嵌套的模式--如组件页面")
    private Boolean alwaysShow;

    @Schema(description = "其他元素")
    private MetaVo meta;

    @Schema(description = "子路由")
    private List<RouterVo> children;


}
